<html>
	<head>
<meta charset="utf-8">
    <title>mix+在线教学系统</title>
    <script type="text/javascript" src="./jquery.js"></script>
		</head>
		<body>
			<button class="try">获取ID</button>
			<button class="try2">检查结果</button>
		</body>
		<script>
        $('.try').click(function () {
        	$.ajax({
		    		url: "http://127.0.0.1:5000",
		    		type: "POST",
		    		data:{"code":"print('hello')", "language":"python3", "problem_id":"1"},
					success: function (data) {
						console.log(data);
					}
			});
        })
		$('.try2').click(function () {
        	$.ajax({
		    		url: "http://127.0.0.1:5000/check/7d0b9adff923d0b19c6c578cf5e31b35",
		    		type: "GET",
					success: function (data) {
						console.log(data);
					}
			});
        })

</script>
</html>